<template>
  <div id="app">
    <transition name="fade" mode="out-in">
      <router-view></router-view>
    </transition>
    <!-- <bounce-loader :loading="loading" :color="color" :size="size"></bounce-loader>   -->
    <bounce-loader class="loading closeloading" :color="color" id="loading"></bounce-loader>  
  </div>
</template>

<script>
import BounceLoader from 'vue-spinner/src/BounceLoader.vue'

export default {
  name: 'app',
  data () {
    return {
      color: '#FF4949'
    }
  },
  components: {BounceLoader}
}
</script>

<style lang="less">

  .fade-enter-active,
  .fade-leave-active {
    transition: all .2s ease;
  }

  .fade-enter,
  .fade-leave-active {
    opacity: 0;
  }

  .loading {
    position: fixed;
    bottom: 50%;
    left: 50%;
    z-index: 999;
  }

  .closeloading {
    display: none;
  }

</style>
